import AjaxPlugin from '@/http'

// 获取课程
export const fetchCourses = () => {
  return AjaxPlugin.$http.get(`/v1/course`).then(r => r.data)
}

// 报名
export const signupCourse = (data) => {
  return AjaxPlugin.$http.post(`/v1/signup`, data).then(r => r.data)
}
